package com.main.organizationandplatformmanagement.domain.organization.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.main.common.base.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.autoconfigure.domain.EntityScan;
/**
 * @author Lin 2025/03/13
 * @version 1.0.0
 * 组织结构模型实体
 */
@TableName("organization_model")
@EqualsAndHashCode(callSuper = true)
@Data
@EntityScan
public class OrganizationModel extends BaseEntity {
    @TableField(value = "organization_id")
    private Long organizationId;
    @TableField(value = "atomic_id")
    private Long atomicId;
    @TableField(value = "parent_atomic_id")
    private Long parentAtomicId;

    @TableField(exist = false)
    private Organization organization;
    @TableField(exist = false)
    private OrganizationModelAtoms organizationModelAtom;
    @TableField(exist = false)
    private OrganizationModelAtoms organizationModelParentAtom;
}

